<template>
</template>

<script>
export default {
  beforeCreate() {
    debugger
    console.log(this.$route);
    const { query } = this.$route
    if (query.code) {
      this.$router.push({ path: query.from, query: { code: query.code } })
    } else {
      this.$router.push({ path: query.from })
    }
  }
}
</script>